package com.wxzz.elearing.comment.service;

import com.wxzz.elearing.comment.dto.*;
import com.wxzz.elearing.comment.entity.*;
import com.wxzz.elearing.comment.vo.CommunityAnswersVo;
import com.wxzz.elearing.comment.vo.CommunityQuestionsContentDescVo;
import com.wxzz.elearing.comment.vo.StudyAnswersVo;
import com.wxzz.elearing.comment.vo.StudyQuestionsContentDescVo;
import com.wxzz.elearning.common.vo.JgPageVo;
import com.wxzz.elearning.common.vo.ReturnVO;

import java.util.List;

public interface IStudyCommentService {

    /**
     * 评论
     * @param comment
     * @return
     */
    ReturnVO saveComment(StudyComment comment);

    /**
     * 根据文章id列出所有评论
     * @return
     */
    ReturnVO<StudyQuestionsContentDescVo> listAllComment(Long articleId);

    /**
     * 采纳评论
     * @return
     */
//    ReturnVO setAccept(StudyQuestionsAnswersDto questionsAnswersDto);

    ReturnVO<JgPageVo<List<StudyComment>>> answersDescList(StudyAnswersDescDto answersDescDto);

    ReturnVO<JgPageVo<List<StudyAnswersVo>>> getAnswersList(StudyAnswersDto answersDto);

    ReturnVO deleteComment(StudyComment comment);

    ReturnVO deleteQueAns(StudyQuestionsAnswersList questionsAnswersList);
}
